<?php
if(!defined('IN_PHPSCUP'))exit('hacking'); 
class UsertypeModel extends BaseModel
{

    var $table  = 'usertype';	

    function show()
    {   
	
		 $info = $this->S_Sql_Exe(array('fields' =>'*'));    
		 return $info;
        
    }
	
    function limitshow()
    {   
	
		 $info = $this->S_Sql_Exe(array('fields' =>'id,name,role_id'));    
		 return $info;        
    }

    function oneshow($id ='')
    {    
	      
		 $info = $this->S_Sql_Exe(array('fields' =>'id,name,role_id','conditions' =>"id='{$id}'",'return' =>'one'));    
		 return $info;
        
    }	
}




?>